<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>数据绑定指令</title>
    <script src="angularjs/angular.min.js"></script>
    <script src="angular-sanitize/angular-sanitize.min.js"></script>
</head>
<body ng-app="doraApp">
    <div ng-controller="ctrl">
        <input ng-model="name"/>
        <input ng-model="age"/>
        <!--<span ng-bind="name"></span>-->
        {{name}} -- {{age}}
        <br/>
        <hr/>

        <!--<input type="text" ng-model="htmlsrc"/>-->
        <span ng-bind-html="htmlsrc"></span>
    </div>

    <script>
        angular.module("doraApp",["ngSanitize"])
                .controller("ctrl",function($scope){
                    $scope.htmlsrc = "<span style='color: red'>Hello Word</span>";
                })
    </script>
</body>
</html>